﻿using english_sentences.MongoRepository;
using Microsoft.AspNetCore.SignalR;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;

namespace english_sentences.Models
{
    [EntityDatabase("englishsentences-database")]
    [EntityCollection("ReadingRecord")]
    public class ReadingRecord : IEntity<string>
    {
        [BsonId]
        [BsonRepresentation(BsonType.ObjectId)]
        public string Id { get; set; }
        public string UserId { get; set; }
        public string SentenceId { get; set; }
        public int Count { get; set; }
    }
}
